﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SZWCFBatteryService
{
    /*****************
     * sky
     * 用于接口件传输的实体类
     * *******************/
    public class TrayBattery
    {
        //托盘号
        string trayNo;
        //电池码
        List<string> batteryList;
        //托盘的行
        string lineNumber;
        //托盘列号
        string columnNumber;
        //托盘层数
        string layerNumber;
        //入库时间
        string warehousingTime;
        //备用字段1
        string spare1;
        //备用字段2
        string spare2;
        //备用字段3
        string spare3;
        //备用字段4
        string spare4;
        //备用字段5
        string spare5;

        public string TrayNo
        {
            get
            {
                return trayNo;
            }

            set
            {
                trayNo = value;
            }
        }

        public List<string> BatteryList
        {
            get
            {
                return batteryList;
            }

            set
            {
                batteryList = value;
            }
        }

        public string LineNumber
        {
            get
            {
                return lineNumber;
            }

            set
            {
                lineNumber = value;
            }
        }

        public string ColumnNumber
        {
            get
            {
                return columnNumber;
            }

            set
            {
                columnNumber = value;
            }
        }

        public string LayerNumber
        {
            get
            {
                return layerNumber;
            }

            set
            {
                layerNumber = value;
            }
        }

        public string WarehousingTime
        {
            get
            {
                return warehousingTime;
            }

            set
            {
                warehousingTime = value;
            }
        }

        public string Spare1
        {
            get
            {
                return spare1;
            }

            set
            {
                spare1 = value;
            }
        }

        public string Spare2
        {
            get
            {
                return spare2;
            }

            set
            {
                spare2 = value;
            }
        }

        public string Spare3
        {
            get
            {
                return spare3;
            }

            set
            {
                spare3 = value;
            }
        }

        public string Spare4
        {
            get
            {
                return spare4;
            }

            set
            {
                spare4 = value;
            }
        }

        public string Spare5
        {
            get
            {
                return spare5;
            }

            set
            {
                spare5 = value;
            }
        }

        //为电池list添加值
        public void addBatteryItem(string batteryNo)
        {
            this.batteryList.Add(batteryNo);
        }
        //获取电池总数量
        public int getBatteryCount()
        {
            return this.batteryList.Count;
        }
    }
}